package cn.com.assistant.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("synonym")//@TableName中的值对应着表名
@ApiModel(description = "同义词表")
public class SynonymEntity {

    @TableId(value = "id",type = IdType.INPUT)
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "关键词")
    private String keyword;

    @ApiModelProperty(value = "归一化词")
    private String normalWord;

    @ApiModelProperty(value = "关联id")
    private String principalId;

    @ApiModelProperty(value = "关联实体")
    private String principalProperty;

    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    @ApiModelProperty(value = "创建时间")
    private Date createdDate;

    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    @ApiModelProperty(value = "更新时间")
    private Date updatedDate;
}
